package service

import (
	"main/dao"
	"main/model"
)

type GoodService struct {

}

func NewGoodService() *GoodService {
	return &GoodService{}
}

func (gs *GoodService) GetGoods(shop_id int64) ([]model.Goods, error) {
	gd := dao.NewGoodDao()
	return gd.QueryGoods(shop_id)
}

